<!DOCTYPE html>
<html>
<head>
<title>企业银行信息</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input id="keyword" type="hidden" class="form-control" v-model="q.shopName" @keyup.enter="query" placeholder="开户人名称">
			</div>
			<!--<a class="btn btn-default" @click="query">查询</a> -->
			#if($shiro.hasPermission("bankInfo:save"))
			<a class="btn btn-primary" @click="add(1)"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("bankInfo:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("bankInfo:editState"))
			<a class="btn btn-primary" @click="editState"><i class="fa fa-pencil-square-o"></i>&nbsp;切换状态</a>
			#end
			#if($shiro.hasPermission("payChannel:save"))
			<a class="btn btn-primary" @click="add(2)"><i class="fa fa-plus"></i>&nbsp;新增渠道商</a>
			#end
			#if($shiro.hasPermission("qrCode:addBatchCode"))
			<a class="btn btn-primary" @click="addBatchCode"><i class="fa fa-plus"></i>&nbsp;批量添加收款码</a>
			#end
			<!--<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			 <a class="btn btn-primary" onclick="viewInfo()"><i class=""></i>&nbsp;查看</a> -->
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
     <div v-show="!showList" class="panel panel-default" id="edit">
     	<div id="bank">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<input id="merchantNo" type="hidden" class="form-control"  v-model="bankInfo.merchantNo" />
			<div class="form-group">
			   	<div class="col-sm-2 control-label">开户人名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" maxlength="10" v-model="bankInfo.bankUser" placeholder="开户人名称"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">开户行名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" maxlength="20" v-model="bankInfo.bankName" placeholder="开户行名称"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">开户行卡号</div>
			   	<div class="col-sm-10">
			      <input type="tel" class="form-control" maxlength="20" v-model="bankInfo.bankCard" placeholder="开户行卡号"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">联系电话</div>
			   	<div class="col-sm-10">
			      <input type="tel" class="form-control" maxlength="11" v-model="bankInfo.mobile" placeholder="联系方式"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">用途说明</div>
			   	<div class="col-sm-10">
			      <input type="tel" class="form-control" maxlength="50" v-model="bankInfo.useDesc" placeholder="用途说明" maxlength="15"/>
			    </div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input id="submitBtn2" type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
		</div>
		
		
		<div id="channel" style="display: none;">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<input id="merchantNo" type="hidden" class="form-control"  v-model="payChannel.merchantNo" placeholder="支付渠道名称"/>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">开户行名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bankInfo.bankName" placeholder="开户行名称" disabled="disabled"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">开户行卡号</div>
			   	<div class="col-sm-10">
			      <input type="tel" class="form-control" v-model="bankInfo.bankCard" placeholder="开户行卡号" disabled="disabled"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">支付渠道类型</div>
			   	<div class="col-sm-10">
			   		<select v-model="payChannel.payType" class="form-control">
						  <option v-for="option in payTypeOptions" v-bind:value="option.value">
						    {{ option.text }}
						  </option>
					</select>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">支付渠道编号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" maxlength="20" v-model="payChannel.payChannelNo" placeholder="支付渠道编号"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">密钥</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" maxlength="40" v-model="payChannel.payKey" placeholder="密钥"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">费率(%)</div>
			   	<div class="col-sm-10">
			      <input type="tel" class="form-control" maxlength="4"  v-model="payChannel.payRate" placeholder="费率"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">最大限额（元/笔）</div>
			   	<div class="col-sm-10">
			      <input type="tel" class="form-control" maxlength="9" v-model="payChannel.maxTransactionMoney" placeholder="最大限额"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">日累计限额（元）</div>
			   	<div class="col-sm-10">
			      <input type="tel" class="form-control" maxlength="9" v-model="payChannel.dayMaxMoney" placeholder="最大限额"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">是否支持信用卡支付</div>
			   	<div class="col-sm-10">
			   		<select v-model="payChannel.iscreditCard" class="form-control">
						  <option v-for="option in iscreditCardoptions" v-bind:value="option.value">
						    {{ option.text }}
						  </option>
					</select>
			    </div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input id="submitBtn" type="button" class="btn btn-primary" @click="saveChannel" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
		</div>
	</div>
	
	
</div>

<script src="${rc.contextPath}/js/bankInfo/bankInfo.js?_${date.systemTime}"></script>
</body>
</html>